package com.itlxd.exception;

import com.itlxd.entity.Category;
import com.itlxd.global.ErrorCode;
import com.itlxd.global.SysConstants;
import com.itlxd.global.SysMessages;

/**
 * @author: lixiaodong
 **/
public class CategoryException extends RuntimeException {

    private Integer code;

    public CategoryException(String message) {
        super(message);
        this.code = ErrorCode.DELETE_DEFAULT_ERROR;
    }

    public CategoryException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
